package cn.wawi.entity.sys;
import com.fasterxml.jackson.annotation.JsonFormat;import com.fasterxml.jackson.annotation.JsonIgnoreProperties;import cn.wawi.common.annotation.TableField;
import cn.wawi.common.annotation.TableName;
/**
 * sys_user 实体类
 * 2016-12-16 20:16:52
 */
@TableName(value="sys_user")@JsonIgnoreProperties("password")
public class User implements java.io.Serializable{
	private static final long serialVersionUID = 1L;	/**
	 *注释: id
	 */
	@TableField(value="id",isPrimaryKey=true)
	private Integer id;
	/**
	 *注释: 用户名
	 */
	@TableField(value="username")
	private String username;
	/**
	 *注释: 真实姓名
	 */
	@TableField(value="realname")
	private String realname;
	/**
	 *注释: 昵称
	 */
	@TableField(value="nickname")
	private String nickname;
	/**
	 *注释: 密码
	 */
	@TableField(value="password")
	private String password;
	/**
	 *注释: 联系电话
	 */
	@TableField(value="phone")
	private String phone;
	/**
	 *注释: 邮箱
	 */
	@TableField(value="email")
	private String email;
	/**
	 *注释: 生日
	 */
	@TableField(value="birthday")
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
	private java.util.Date birthday;
	/**
	 *注释: 性别 0不详 1男  2女
	 */
	@TableField(value="geneder")
	private String geneder;
	/**
	 *注释: 注册时间
	 */
	@TableField(value="reg_time")
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
	private java.util.Date regTime=new java.util.Date();
	/**
	 *注释: 部门id
	 */
	@TableField(value="dept_id")
	private Integer deptId;
	/**
	 *注释: 1正常   0禁用
	 */
	@TableField(value="status")
	private String status;
	/**
	 *注释: 描述
	 */
	@TableField(value="remark")
	private String remark;	private String deptName;	public User(){}	public User(String username){this.username=username;}
	public void setId(Integer id){
		this.id=id;
	}
	public Integer getId(){
		return id;
	}
	public void setUsername(String username){
		this.username=username==null?null:username.trim();
	}
	public String getUsername(){
		return username;
	}
	public void setRealname(String realname){
		this.realname=realname==null?null:realname.trim();
	}
	public String getRealname(){
		return realname;
	}
	public void setNickname(String nickname){
		this.nickname=nickname==null?null:nickname.trim();
	}
	public String getNickname(){
		return nickname;
	}
	public void setPassword(String password){
		this.password=password==null?null:password.trim();
	}
	public String getPassword(){
		return password;
	}
	public void setPhone(String phone){
		this.phone=phone==null?null:phone.trim();
	}
	public String getPhone(){
		return phone;
	}
	public void setEmail(String email){
		this.email=email==null?null:email.trim();
	}
	public String getEmail(){
		return email;
	}
	public void setBirthday(java.util.Date birthday){
		this.birthday=birthday;
	}
	public java.util.Date getBirthday(){
		return birthday;
	}
	public void setGeneder(String geneder){
		this.geneder=geneder==null?null:geneder.trim();
	}
	public String getGeneder(){
		return geneder;
	}
	public void setRegTime(java.util.Date regTime){
		this.regTime=regTime;
	}
	public java.util.Date getRegTime(){
		return regTime;
	}
	public void setDeptId(Integer deptId){
		this.deptId=deptId;
	}
	public Integer getDeptId(){
		return deptId;
	}
	public void setStatus(String status){
		this.status=status==null?null:status.trim();
	}
	public String getStatus(){
		return status;
	}
	public void setRemark(String remark){
		this.remark=remark==null?null:remark.trim();
	}
	public String getRemark(){
		return remark;
	}	public void setDeptName(String deptName){		this.deptName=deptName==null?null:deptName.trim();	}	public String getDeptName(){		return deptName;	}
}

